package text111;

public class Solution3 {
	  public String reverseLeftWords(String s, int n) {
		  //存放字符串
		  StringBuffer stringBuffer = new StringBuffer(s);
		  StringBuffer tepstringBuffer = new StringBuffer(s);
		  //存放删除字符串
			StringBuffer str = new StringBuffer();
			for (int i = 0; i < n; i++) {
				str.append(stringBuffer.charAt(i));
				tepstringBuffer.deleteCharAt(0);
			}
			//拼接
			tepstringBuffer.append(str);
			return tepstringBuffer.toString();
			
	    }
}
